class Person {
    constructor(public readonly idCard: string, public name: string ) {

    }
    
}

const p1 = new Person('112233344', '小米')
p1.idCard = 1
p1.name = '小王'